package com.security.demo.service.impl;

import com.security.demo.entity.Role;
import com.security.demo.mapper.RoleMapper;
import com.security.demo.service.RoleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author hh
 * @since 2023-01-12
 */
@Service
public class RoleServiceImpl extends ServiceImpl<RoleMapper, Role> implements RoleService {

    @Override
    public List<Role> getRolesByUserName(String username) {
        return this.getBaseMapper().getRolesByUserName(username);
    }
}
